﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;
using GWEB.WebBase.Entity;
using GWEB.WebBase.Utility;
using GWEB.WebFrame.Public;

namespace GWEB.WebFrame.Models
{
    public class Followup
    {
        public PageInfo Init()
        {
            PageInfo pg = new PageInfo();
            HttpSessionState session =System.Web.HttpContext.Current.Session;
            pg.dict = BasePage.getDict(session);
            pg.Type = "Followup";
            pg.SMenuId = "KH";
            pg.TableName = "cu_Cus_followup";
            pg.KeyFieldName = "id";
            pg.Sop = BasePage.Grant(session, pg.SMenuId);
            pg.Sop.EDIT = BasePage.Grant(session, pg.SMenuId, "GJ");
            pg.Sop.ADD = pg.Sop.EDIT;
            ColumnInfo cl;
            cl = new ColumnInfo(); cl.DataType = Tag.Text; cl.FieldName = "AdMode"; cl.HeadText = "跟进方式"; cl.IsCheck = true; cl.Length = 20; cl.DictTypeID = "D03";cl.ErrMessage = cl.HeadText + ":请选择一个";cl.IsNull = false; pg.AddColumn(cl);
            cl = new ColumnInfo(); cl.DataType = Tag.Text; cl.FieldName = "CusGrade"; cl.HeadText = "跟进结果"; cl.IsCheck = true; cl.Length = 20; cl.DictTypeID = "D05"; cl.ErrMessage = cl.HeadText + ":请选择一个";cl.IsNull = false; pg.AddColumn(cl);
            cl = new ColumnInfo(); cl.DataType = Tag.Date; cl.FieldName = "MakeDate"; cl.HeadText = "预约时间"; cl.IsCheck = true;  cl.ErrMessage = cl.HeadText + ":格式有错误,示例:" + Date.nowString(); pg.AddColumn(cl);
            cl = new ColumnInfo(); cl.DataType = Tag.Text; cl.FieldName = "IsAuditions"; cl.HeadText = "试听选择";pg.AddColumn(cl);
            cl = new ColumnInfo(); cl.DataType = Tag.Text; cl.FieldName = "IsCharge"; cl.HeadText = "收费状态"; cl.IsCheck = true; cl.Length = 1; cl.DictTypeID = "D06"; cl.ErrMessage = cl.HeadText + ":请选择一个"; cl.IsNull = false; pg.AddColumn(cl);
            //cl = new ColumnInfo(); cl.DataType = Tag.Text; cl.FieldName = "custRemark"; cl.HeadText = "备注"; cl.IsCheck = true; cl.Length = 200; cl.ErrMessage = cl.HeadText + ":长度不能超过" + cl.Length; pg.AddColumn(cl);
            
            return pg;
        }
    }
}